<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>程序调试</title>
    <style type="text/css">
        div{text-align: center; line-height: 25px;}
    </style>
</head>
<body>
<div>
<script type="text/javascript">
    var t=prompt("请输入一个整数","");
    if(t>6){
        for(var i= t;i>0;i--){
            for(var j=1;j<=i;j++){
                document.write(j+"&nbsp;&nbsp;");
            }
            document.write("<br />");
        }}
    else{
            for(var i=t;i>0;i--){
                for(var j=1;j<=i;j++){
                    document.write(j+"&nbsp;&nbsp;");
                }
                document.write("<br />");
            }
            for(var i=1;i<=t;i++){
                for(var j=1;j<=i;j++){
                    document.write(j+"&nbsp;&nbsp;");
                }
                document.write("<br />");
            }
        }
</script>
</div>
</body>
</html>